package com.rhtchr.util.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.IndexColumn;

@Entity
@Table(name = "t_dictionary_item")
public class DictionaryItem {
	private int id;
	private int groupId;
	private String groupName;
	private String groupDispName;
	private int code;
	private String name;
	private String displayName;
	private int parentId;
	private int parentCode;
	private int parentGroupId;

	@Column(name = "display_name", length = 255)
	public String getDisplayName() {
		return displayName;
	}

	@Column(name = "group_id")
	public int getGroupId() {
		return groupId;
	}

	@Column(name = "group_name")
	public String getGroupName() {
		return groupName;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	@Column(name = "parent_id")
	public int getParentId() {
		return parentId;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Column(name = "group_disp_name")
	public String getGroupDispName() {
		return groupDispName;
	}

	public void setGroupDispName(String groupDispName) {
		this.groupDispName = groupDispName;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}

	@Column(name = "parent_code")
	public int getParentCode() {
		return parentCode;
	}

	public void setParentCode(int parentCode) {
		this.parentCode = parentCode;
	}

	@Column(name = "parent_group_id")
	public int getParentGroupId() {
		return parentGroupId;
	}

	public void setParentGroupId(int parentGroupId) {
		this.parentGroupId = parentGroupId;
	}
}
